package com.maogh.factory.simplefactory;

public class HumanFactory {
	
	public Human createHuman(String t){
		Human human = null;
		if("boy".equals(t)){
			human = new Boy();
		}else if ("girl".equals(t)) {
			human = new Girl();
		}
		return human;
	}

}
